var app = getApp();
Page( Object.assign({},{
    data:{
		siteroot : app.siteInfo.siteroot.replace('app/index.php', ''),uniacid: app.siteInfo.uniacid,
    },
    onLoad:function(options){
        var self = this;
        app.com.http('fenchenu','POST',{op:'rule'},30,false,'','',function(res){
            if (!res.data.errno) {
                self.setData({
                    rule : res.data.data.rule,
                },function(){
                    self.setData({
                        inited : true,
                    });
                });

                if( res.data.data.rule.content ){
                    var WxParse = require('../resource/wxParse/wxParse.js');
                    WxParse.wxParse( 'content', 'html',  res.data.data.rule.content, self, 0);
                }

            }else{
                app.com.alert(res.data.message);
            }
        });
        
        wx.setNavigationBarTitle({
            title: '分成说明'
        });

    },
    location : function( e ){
        app.com.location( e );
    },
    otherapp : function( e ){
        app.com.otherapp( e );
    },
    navigateto : function( e ){
        app.com.navigateto( e,this.data.tid );
    },
    redirectto : function( e ){
        app.com.redirectto( e,this.data.tid );
    },    
    callphone : function(e){
        app.com.callphone( e );
    },
    showimages : function( e ){
        app.com.showimages( e );
    },
    FormIdsubmit : function(e){

    },
    footNavigate(e){
        var url = e.currentTarget.dataset.url;
        wx.switchTab({
          url: url
        })
    },
    showJoin(e){
        var self = this;
        self.setData({
            Joinanimation : !self.data.Joinanimation,
        })
    },
    FormIdsubmit : function(e){
        if( app.globalData.formarr.length <= 20 ) app.globalData.formarr.push(e.detail.formId);
    },
    
}))